module Base
{
	model UAZ452_02Base
	{
		mesh = vehicles/Vehicle_UAZ452_Body|UAZ452,
		shader = vehicle_norandom_multiuv_noreflect,
		invertX = false,
		scale = 1,
	}

	model UAZ452_02_Lights
	{
		mesh = vehicles/Vehicle_UAZ452_Body|Lights452,
		shader = vehicle_norandom_multiuv_noreflect,
                invertX = false,
		scale = 1,
	}

	model UAZ452_02_HeadLight
	{
		mesh = vehicles/Vehicle_UAZ452_Body|HeadLight,
		shader = vehicle_norandom_multiuv_noreflect,
                invertX = false,
		scale = 1,
	}


	model UAZBfrontwheelleft
	{
		mesh = vehicles/Vehicle_UAZ_Wheel,
		texture = vehicles/Vehicle_UAZ_wheelB,           
	}
	model UAZBfrontwheelright
	{
		mesh = vehicles/Vehicle_UAZ_Wheel,
		texture = vehicles/Vehicle_UAZ_wheelB,        
	}
	model UAZBbackwheelleft
	{
		mesh = vehicles/Vehicle_UAZ_Wheel,
		texture = vehicles/Vehicle_UAZ_wheelB,
	}
	model UAZBbackwheelright
	{
		mesh = vehicles/Vehicle_UAZ_Wheel,
		texture = vehicles/Vehicle_UAZ_wheelB, 
	}
	vehicle UAZ452_02
	{
		mechanicType = 2,
		offRoadEfficiency = 1.8,
		engineRepairLevel = 5,
		playerDamageProtection = 1.3,

		model
		{
			file = UAZ452_02Base,
			scale = 1.4000,
			7500,
			offset = 0.0000 0.2071 0.0500,
		}

		skin
		{
			texture = Vehicles/Vehicle_UAZ452_02,
		}

		textureMask = Vehicles/Vehicle_UAZ452_02_Mask,
		textureLights = Vehicles/Vehicle_UAZ452_Lights,
		textureDamage1Overlay = Vehicles/Vehicle_UAZ452_PASS_Damage1,
		textureDamage2Overlay = Vehicles/Vehicle_UAZ452_PASS_Damage2,
		textureDamage1Shell = Vehicles/Vehicle_UAZ452_PASS_Damage1,
		textureDamage2Shell = Vehicles/Vehicle_UAZ452_PASS_Damage2,
		textureRust = Vehicles/Vehicle_UAZ452_PASS_Rust,

		sound
		{
			engine = VehicleEngineOffRoad,
			engineStart = VehicleEngineOffRoad,
			engineTurnOff = VehicleEngineOffRoad,
			horn = VehicleHornJeep,
			ignitionFail = VehicleIgnitionFailOffRoad,
		}

		lightbar
		{
			soundSiren = VehicleSiren,
			leftCol = 0;0;1,
			rightCol = 0;0;1,
		}

		extents = 1.1286 0.6571 2.4714,
		mass = 1100,
		physicsChassisShape = 1.0571 0.8857 2.3857,
		centerOfMassOffset = 0.0000 0.5571 -0.0214,
		shadowExtents = 1.0589 2.2556,
		shadowOffset = 0.0000 -0.0189,
		engineForce = 3500,
		engineQuality = 50,
		engineLoudness = 75,
		maxSpeed = 50f,
		gearRatioCount = 5,
		gearRatioR = 7.09,
		gearRatio1 = 7.44,
		gearRatio2 = 2.29,
		gearRatio3 = 1,
		brakingForce = 60,
		rollInfluence = 0.9f,
		steeringIncrement = 0.02,
		steeringClamp = 0.28,
		suspensionStiffness = 40,
		suspensionCompression = 1.83,
		suspensionDamping = 0.88,
		maxSuspensionTravelCm = 5,
		suspensionRestLength = 0.2,
		wheelFriction = 1.4f,
		frontEndHealth = 100,
		rearEndHealth = 100,
		seats = 4,

		part Lights
		{
			category = nodisplay,

			model Lights
			{
				file = UAZ452_02_Lights,
			}

			lua
			{
				init = ATATuning2.Init.setAllModelsVisible,
			}
		}

		part HeadLight
		{
			category = nodisplay,

			model HeadLight
			{
				file = UAZ452_02_HeadLight,
			}

			lua
			{
				init = ATATuning2.Init.setAllModelsVisible,
			}
		}

		wheel FrontLeft
		{
			front = true,
			offset = 0.3929 -0.2500 0.5571,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.3929 -0.2500 0.5571,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.3929 -0.2500 -0.7071,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.3929 -0.2500 -0.7071,
			radius = 0.15f,
			width = 0.2f,
		}

		template = PassengerSeat4,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.2571 0.2000 0.5143,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.8857 -0.4643 0.6000,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.2429 0.2000 0.5143,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.8786 -0.4643 0.6000,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		passenger RearLeft
		{
			position inside
			{
				offset = 0.2571 0.2429 -0.2071,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.8786 -0.4643 -0.1857,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearLeft,
			}
		}

		passenger RearRight
		{
			position inside
			{
				offset = -0.2429 0.2429 -0.2071,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.8786 -0.4643 -0.1857,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 1.5000 0.5571 0.4286,
		}

		area TruckBed
		{
			xywh = 0.0000 -1.5786 0.8714 0.5286,
		}

		area SeatFrontLeft
		{
			xywh = 0.8143 0.7429 0.4286 0.6000,
		}

		area SeatFrontRight
		{
			xywh = -0.8143 0.7429 0.4286 0.6000,
		}

		area SeatRearRight
		{
			xywh = -0.8143 -0.1143 0.4286 0.5571,
		}

		area SeatRearLeft
		{
			xywh = -0.8214 -0.1143 0.4286 0.5571,
		}

		area GasTank
		{
			xywh = 0.7357 0.0000 0.4286 0.4286,
		}

		area TireFrontLeft
		{
			xywh = 0.7357 0.6571 0.4286 0.4286,
		}

		area TireFrontRight
		{
			xywh = -0.7500 0.6571 0.4286 0.4286,
		}

		area TireRearLeft
		{
			xywh = 0.7357 -0.7143 0.4286 0.4286,
		}

		area TireRearRight
		{
			xywh = -0.7357 -0.7143 0.4286 0.4286,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			itemType = Base.BigTrunk,

			container
			{
				capacity = 150,
			}
		}

		template = TrunkDoor,
		template = Seat/part/SeatFrontLeft,
		template = Seat/part/SeatFrontRight,
		template = Seat/part/SeatRearLeft,
		template = Seat/part/SeatRearRight,

		part Seat*
		{
			table install
			{
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
			}
		}

		part GloveBox
		{
			area = SeatFrontRight,
			itemType = Base.GloveBox,
			mechanicRequireKey = true,

			container
			{
				capacity = 7,
				test = Vehicles.ContainerAccess.GloveBox,
			}

			lua
			{
				create = Vehicles.Create.Default,
			}
		}

		template = GasTank,

		part GasTank
		{
			install
			{
				skills = Mechanics:4,
				recipes = Intermediate Mechanics,
			}

			uninstall
			{
				skills = Mechanics:4,
				recipes = Intermediate Mechanics,
			}
		}

		template = Battery,
		template = Engine,
		template = Muffler,

		part Muffler
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = EngineDoor,

		part EngineDoor
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		part Heater
		{
			category = engine,

			lua
			{
				update = Vehicles.Update.Heater,
			}
		}

		part PassengerCompartment
		{
			category = nodisplay,

			lua
			{
				update = Vehicles.Update.PassengerCompartment,
			}
		}

		template = Windshield/part/Windshield,

		part Windshield*
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Window/part/WindowFrontLeft,
		template = Window/part/WindowFrontRight,
		template = Window/part/WindowRearRight,
		template = Window/part/WindowRearLeft,

		part Window*
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Door/part/DoorFrontLeft,
		template = Door/part/DoorFrontRight,
		template = Door/part/DoorRearRight,

		part Door*
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Tire,

		part TireFrontLeft
		{
			model InflatedTirePlusWheel
			{
				file = UAZBfrontwheelleft,
			}
		}

		part TireFrontRight
		{
			model InflatedTirePlusWheel
			{
				file = UAZBfrontwheelright,
			}
		}

		part TireRearLeft
		{
			model InflatedTirePlusWheel
			{
				file = UAZBbackwheelleft,
			}
		}

		part TireRearRight
		{
			model InflatedTirePlusWheel
			{
				file = UAZBbackwheelright,
			}
		}

		template = Brake,

		part Brake*
		{
			table install
			{
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
			}
		}

		template = Suspension,

		part Suspension*
		{
			table install
			{
				skills = Mechanics:3,
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				skills = Mechanics:3,
				recipes = Intermediate Mechanics,
			}
		}

		template = Headlight,
		template = Radio,

		part Radio*
		{
			itemType = Radio.HamRadio2,
		}

		attachment trailerfront
		{
			offset = 0.0000 -0.0131 1.2549,
			rotate = 0.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 -0.0131 -1.4248,
			rotate = 0.0000 0.0000 0.0000,
		}
	}
}
